/// <reference path="../Scripts/jquery-1.7.1.min.js" />
/// <reference path="../Scripts/knockout-2.1.0.js" />

jQuery(document).ready(function () {
    var MyLoginViewModel = new LoginViewModel();
    ko.applyBindings(MyLoginViewModel, document.getElementById('AddLoginNode'));
    jQuery("#NewLoginForm").validate();
    jQuery('input:submit').click(function () {
        if (jQuery("#NewLoginForm").valid())
        {
            MyLoginViewModel.Login();

        }
        return false;
    });
});
